<?xml version="1.0"?>
 <xsl:stylesheet xmlns:xsl=
 "http://www.w3.org/1999/XSL/Transform" version=
 "1.0"> 
<xsl:output method="html" indent="yes"/>
 
<xsl:template match="/ingredient">
   <html>
   <body>
   <h1><xsl:value-of select="title"/></h1>
   <p><xsl:value-of select="description"/></p>
   <h2>Autors</h2>
   <ul>
   <xsl:for-each select="authors/author">
   <li><xsl:value-of select="surname"/>, <xsl:value-of select="name"/> (<xsl:value-of select="email"/>)</li>
   </xsl:for-each>
   </ul>
   
   <h2>Tags:</h2>
   <p>
   <xsl:for-each select="tags/tag">
	<span><xsl:value-of select="."/>, </span>
   </xsl:for-each>
   </p>
   
   <table>
   <tr><td>Version</td><td><xsl:value-of select="version/mayor"/>.<xsl:value-of select="version/menor"/>.<xsl:value-of select="version/revision"/></td></tr>
   </table>
   
   <h2>Revisions:</h2>
   <xsl:for-each select="revisions/revision">
   <ul>
	<li>Date: <xsl:value-of select="date"/></li>
	<li>Version: <xsl:value-of select="version/mayor"/>.<xsl:value-of select="version/menor"/>.<xsl:value-of select="version/revision"/></li>
	<li>Description: <xsl:value-of select="date"/></li>
	<li>Authors:
	<ul>
	<xsl:for-each select="authorsRev/author">
		<li><xsl:value-of select="surname"/>, <xsl:value-of select="name"/> (<xsl:value-of select="email"/>)</li>
    </xsl:for-each>
	</ul>
	</li>
	</ul>
   </xsl:for-each>
   
   <xsl:for-each select="steps/step">
   <h3><xsl:value-of select="title"/></h3>
   <p><xsl:value-of select="content"/></p>
   </xsl:for-each>
   
   </body>
   </html>
 </xsl:template>

 </xsl:stylesheet> 